#pragma once
#include <map>
#include "UDll.h"
#include "ActionInfo.h"
#include "loki/Singleton.h"

class CBaseForm;


class CActionMgr
{
public:
	//static CActionMgr& Instance();	
	virtual ~CActionMgr(void);

	BOOL StartAction(const ActionInfo& action);
	BOOL StopAction(const ActionInfo& action);

	CBaseForm* CreateCurrentForm(CWnd* pParent);
	ActionInfo GetCurrentActionInfo();
	
	ActionInfo m_curAction;
	std::map<CString,ActionInfo> m_actions;
public:
	CActionMgr(void);
	


};


typedef Loki::SingletonHolder<CActionMgr> ActionMgrHolder;